package day04;
//for循环：输出5次"行动是成功的阶梯"、输出9的乘法表(1到9、1/3/5/7/9、9到1)
public class For {
    public static void main(String[] args) {
        for (int i = 0; i < 5; i++) {
            System.out.println("行动是成功的阶梯");

        }
        int num=9;
        //1-9

        for (int i = 1; i <=num ; i++) {
            System.out.println(i+"*"+num+"="+i*num);

        }
        //1/3/5/7/9

        for (int i = 1; i <=9 ; i+=2) {
            System.out.println(i+"*"+num+"="+i*num);

        }
        //9-1

        for (int i = num; i >=1 ; i--) {
            System.out.println(i+"*"+num+"="+i*num);

        }




    }
}
